<template>
    <div>
        <ph-button-group :container="true">
            <ph-button @click="openAlert">alert</ph-button>
            <ph-button @click="openConfirm">confirm</ph-button>
        </ph-button-group>
    </div>
</template>
<script lang="ts" setup>
import PhModal from 'ph-modal'
import { PhButtonGroup, PhButton } from '@/components'
import PhToast from 'ph-toast'

const openAlert = ()=>{
    PhModal.alert("我爱你，中国")
}
const openConfirm = ()=>{
    PhModal.confirm("我爱你，中国").done((a)=>{
        PhToast.show(a==1?"确认事件":"取消事件")
    })
}
</script>
